<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1">
		<link rel="icon" href="/favicon.ico">
		<title>登陆-橙子校园</title>
		<meta name="keywords" content="校园二手,校园二手市场,大学二手,大学二手市场,大学生二手,大学二手网站,校园二手网站,校园二手app,桂林二手,桂林校园二手">
		<meta name="description" content="橙子校园网是由橙子校园团队开发的一个高校校园综合性的二手交易平台，校园二手网、大学生二手市场、大学生二手网，覆盖多所大学的大学生。涵盖二手手机、二手自行车、二手电动车、二手教材、二手书、二手电脑、二手数码产品等校园二手信息，满足大学生校园内的二手交易、二手求购的需求。买卖二手，尽在橙子校园">
		<link href="../static/css/chunk-vendors.ca268116.css" rel="stylesheet">
		<link href="../static/css/app.d8065f99.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-b5de9562.dd7e6dd9.css">
		<script charset="utf-8" src="../static/js/chunk-b5de9562.ee00ad8d.js"></script>
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-31acb4cd.4690c08c.css">
		<script charset="utf-8" src="../static/js/chunk-31acb4cd.2d86e333.js"></script>
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-4b1544d0.a9b19322.css">
		<script charset="utf-8" src="../static/js/chunk-4b1544d0.805cdbf0.js"></script>
		<link rel="stylesheet" type="text/css" hrefrge="css/chunk-db1da7f8.7ce14588.css">
		<script charset="utf-8" src="../static/js/chunk-db1da7f8.493d21ce.js"></script>
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-8d0479d4.b60dd502.css">
		<script charset="utf-8" src="../static/js/chunk-8d0479d4.a3d7b29e.js"></script>
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-60050edb.5617662c.css">
		<script charset="utf-8" src="../static/js/chunk-60050edb.530116be.js"></script>
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-63d4d7cc.6adbe589.css">
		<script charset="utf-8" src="../static/js/chunk-63d4d7cc.8383bb3f.js"></script>
		<link rel="stylesheet" type="text/css" href="../static/css/chunk-59d39f2c.b5060e53.css">
		<script charset="utf-8" src="../static/js/chunk-59d39f2c.41e95ed6.js"></script>
		<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
		<script type="text/javascript" src="https://lib.baomitu.com/vue/2.6.12/vue.min.js"></script>
		<script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.min.js"></script>

	</head>

	<body>
			<!---->
			<div data-v-5667c950="" data-v-6505e6d8="" class="wrap">
				<div data-v-5667c950="" class="qr-code fl">
					<div data-v-5667c950="" class="text1">
						[ 橙子校园 ]
					</div>
					<div data-v-5667c950="" class="text2">
						关注公众号，撩漂亮客服MM
					</div>
					<div data-v-5667c950="" class="img-box"><img data-v-5667c950="" src="https://api.youzixy.com/public/uploads/attach/2019/10/08/5d9c2ef5218df.png" alt=""></div>
				</div>
				<div id="loginuser" data-v-5667c950="" class="content-box clearfix">
					<div data-v-5667c950="" class="log-box">
						<form data-v-5667c950="" autocomplete="off" class="ivu-form ivu-form-label-right">
							<div data-v-5667c950="" class="ivu-form-item"><label class="ivu-form-item-label" style="width: 50px;">账号</label>
								<div class="ivu-form-item-content" style="margin-left: 50px;">
									<div data-v-5667c950="" class="ivu-input-wrapper ivu-input-wrapper-default ivu-input-type">
										<!---->
										<!----><i class="ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
										<input v-model="user.uname" autocomplete="off" spellcheck="false" type="text" placeholder="请输入登录账号" class="ivu-input ivu-input-default">
										<!---->
									</div>
									<!---->
								</div>
							</div>
							<div data-v-5667c950="" class="ivu-form-item"><label class="ivu-form-item-label" style="width: 50px;">密码</label>
								<div class="ivu-form-item-content" style="margin-left: 50px;">
									<div data-v-5667c950="" class="ivu-input-wrapper ivu-input-wrapper-default ivu-input-type">
										<!---->
										<!----><i class="ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
										<input  v-model="user.upwd" autocomplete="off" spellcheck="false" type="password" placeholder="请输入密码" class="ivu-input ivu-input-default">
										<!---->
									</div>
									<!---->
								</div>
							</div>
							<!--<div data-v-5667c950="" class="code ivu-form-item"><label class="ivu-form-item-label" style="width: 50px;">验证码</label>
								<div class="ivu-form-item-content" style="margin-left: 50px;">
									<div data-v-5667c950="" class="ivu-input-wrapper ivu-input-wrapper-default ivu-input-type">
										&lt;!&ndash;&ndash;&gt;
										&lt;!&ndash;&ndash;&gt;<i class="ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
										<input autocomplete="off" spellcheck="false" type="text" placeholder="请输入验证码" class="ivu-input ivu-input-default">
										&lt;!&ndash;&ndash;&gt;
									</div>
									<button data-v-5667c950="" type="button" class="code-btn ivu-btn ivu-btn-primary">
									 <span>获取验证码</span>
									</button>

								</div>-->

							<button @click.prevent="login" data-v-5667c950="" type="button" class="login-btn ivu-btn ivu-btn-primary ivu-btn-long"><!---->
							<span>登录</span></button>
					<a href="../static/register.html" >没有账号？点这里注册</a>
						</form>
						<!--<div data-v-5667c950="" class="tips">
							首次登录将自动注册为平台用户
						</div>-->
					</div>
				</div>

				<script>
					var v1=new Vue({
						el :"#loginuser",
						data:{
							user : {
								uname: "",
								upwd: ""
							}
						},
						methods:{
							background () {
								this.$Message[type]({
									background: true,
									content: '请输入用户名称'
								});
							},
							login(){
								var params = new URLSearchParams();
								params.append("username",this.user.uname);
								params.append("password",this.user.upwd);
								if(params.get("username") == null ||params.get("username") == ""){
									alert("请输入用户名称");
									return;
								}
								if(params.get("password") == null ||params.get("password") == ""){
									alert("请输入密码");
									return;
								}
								axios.get("http://127.0.0.1:8001/userAction/login?userName="+this.user.uname+"&passWord="+this.user.upwd).then(res=>{
									if (res.data.code==0){
										alert(res.data.msg);
										location.href="buy.html";
									}else {
										alert(res.data.msg);
										console.info("登录失败")
										location.href="login.html";
									}

								})
							}
						}
					})
				</script>

			</div>
		</div>
		<script src="../static/js/chunk-vendors.c696eafb.js"></script>
		<div class="ivu-loading-bar" style="height: 2px; display: none;">
			<div class="ivu-loading-bar-inner ivu-loading-bar-inner-color-primary" style="width: 0%; height: 2px;"></div>
		</div><textarea wrap="soft" style="letter-spacing:normal;line-height:21px;padding-top:4px;padding-bottom:4px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, 微软雅黑, Arial, sans-serif;font-weight:400;font-size:14px;text-rendering:auto;text-transform:none;width:659.556px;text-indent:0px;padding-left:7px;padding-right:7px;border-width:1px;box-sizing:border-box;
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important
"></textarea>
		<div class="ivu-message" style="top: 150px; z-index: 1050;"></div>
	</body>

</html>